<extend name="Base/common" />
<block name="body">
  <div class="span9 page_message">
<section id="contents">
  <ul class="tab-nav nav">
    <li class="current"><a href="{:U('Home/MemberPublic/lists')}">公众号管理<span class="arrow fa fa-sort-up"></span></a></li>
  </ul>
  <div class="setting_step app_setting">
         <a class="step step_cur_1" href="{:U('Home/MemberPublic/add',array('id'=>$id))}">1.增加基本信息</a>
         <a class="step " href="<empty name="id">###<else /> {:U('Home/MemberPublic/step_1',array('id'=>$id))}</empty>">2.配置公众平台</a>
         <a class="step " href="<empty name="id">###<else /> {:U('Home/MemberPublic/step_2',array('id'=>$id))}</empty>">3.保存接口配置</a>
  </div>     
  <div class="tab-content"> 
    <!-- 表单 -->
    <form class="form-horizontal" method="post" action="{:U('Home/MemberPublic/add')}" id="form">
      <!-- 基础文档模型 -->
      <div class="tab-pane in              tab1" id="tab1">
        <div class="form-item cf toggle-public_name">
          <label class="item-label"> <span class="need_flag">*</span> 公众号名称 <span class="check-tips"> </span></label>
          <div class="controls">
            <input type="text" value="{$info.public_name}" name="public_name" class="text input-large">
          </div>
        </div>
        <div class="form-item cf toggle-public_id">
          <label class="item-label"> <span class="need_flag">*</span> 原始ID <span class="check-tips"> （请正确填写，保存后不能再修改，且无法接收到微信的信息） </span></label>
          <div class="controls">
            <input type="text" value="{$info.public_id}" name="public_id" class="text input-large">
          </div>
        </div>
        <div class="form-item cf toggle-wechat">
          <label class="item-label"> <span class="need_flag">*</span> 微信号 <span class="check-tips"> </span></label>
          <div class="controls">
            <input type="text" value="{$info.wechat}" name="wechat" class="text input-large">
          </div>
        </div>
        <div class="form-item cf toggle-type">
          <label class="item-label"> 公众号类型 <span class="check-tips"> </span></label>
          <div class="controls">
            <div class="check-item"> 
              <!--[if !IE]><!-->
              <input type="radio" <eq name="info.type" value="0">checked="checked"</eq>  name="type" id="type_0" value="0" class="regular-radio">
              <label for="type_0"></label>
              普通订阅号 
              <!--<![endif]--> 
              <!--[if IE]>
				<input type="radio" <eq name="info.type" value="0">checked</eq> value="0"  id="type_0" name="type" checked="checked" />
				<label for="type_0"></label>普通订阅号							   
             <![endif]--> 
            </div>
            <div class="check-item"> 
              <!--[if !IE]><!-->
              <input type="radio" <eq name="info.type" value="1">checked="checked"</eq> name="type" id="type_1" value="1" class="regular-radio">
              <label for="type_1"></label>
              认证订阅号/普通服务号 
              <!--<![endif]--> 
              <!--[if IE]>
				<input type="radio" <eq name="info.type" value="1">checked="checked"</eq> value="1" id="type_1" name="type" />
				<label for="type_1"></label>认证订阅号/普通服务号	
              <![endif]--> 
            </div>
            <div class="check-item"> 
              <!--[if !IE]><!-->
              <input type="radio" <eq name="info.type" value="2">checked="checked"</eq> name="type" id="type_2" value="2" class="regular-radio">
              <label for="type_2"></label>
              认证服务号 
              <!--<![endif]--> 
              <!--[if IE]>
				<input type="radio" <eq name="info.type" value="2">checked="checked"</eq> value="2" id="type_2" name="type" />
				<label for="type_2"></label>认证服务号
              <![endif]--> 
            </div>
          </div>
        </div>
        <div class="form-item cf">
        <input type="hidden" name="id" value="{$id|intval}">
          <button target-form="form-horizontal" type="submit" id="submit" class="btn submit-btn ajax-post">下一步</button>
        </div>
      </div>
    </form>
  </div>
  <!--帮助消息-->
  <div class="help_content">
      <h3>帮助消息</h3>
      <p>以上消息可以从公众平台里找到，如下图</p>
      <p><img src="{:SITE_URL}/Public/Home/images/help01.png" ></p>
  </div>
</section>
</block>
<block name="script">
  <link href="__STATIC__/datetimepicker/css/datetimepicker.css?v={:SITE_VERSION}" rel="stylesheet" type="text/css">
  <php>if(C('COLOR_STYLE')=='blue_color') echo '
    <link href="__STATIC__/datetimepicker/css/datetimepicker_blue.css?v={:SITE_VERSION}" rel="stylesheet" type="text/css">
    ';</php>
  <link href="__STATIC__/datetimepicker/css/dropdown.css?v={:SITE_VERSION}" rel="stylesheet" type="text/css">
  <script type="text/javascript" src="__STATIC__/datetimepicker/js/bootstrap-datetimepicker.js"></script> 
  <script type="text/javascript" src="__STATIC__/datetimepicker/js/locales/bootstrap-datetimepicker.zh-CN.js?v={:SITE_VERSION}" charset="UTF-8"></script> 
  <script type="text/javascript">
$('#submit').click(function(){
    $('#form').submit();
});

$(function(){
    $('.time').datetimepicker({
        format: 'yyyy-mm-dd hh:ii',
        language:"zh-CN",
        minView:0,
        autoclose:true
    });
    $('.date').datetimepicker({
        format: 'yyyy-mm-dd',
        language:"zh-CN",
        minView:2,
        autoclose:true
    });	
    showTab();
});
</script> 
</block>
